<h1>My Contacts</h1>

<%= flash_notice %>
 

<div class="contact_list">
  <h2>Upcoming Events</h2>
  <ul>
    <% for contact in @upcoming_events %>
    <li>
      <%= link_to h(contact.contact_email), contact_path(:id => contact.id) %>
    </li>
    <% end %>
    <%= no_contacts(@upcoming_events) %>
  </ul>
  <p class="add">
    <%= link_to "add contact", new_contact_path %>
  </p>
</div>

<div class="contact_list">
  <h2>Current Contacts</h2>
  <ul>
    <% for contact in @current_contacts%>
    <li>
      <%= link_to h(contact.contact_email), contact_path(:id => contact.id) %> 
    </li>
    <% end %>
  </ul>
</div>